var act = document.querySelector("#act")
var language = document.querySelector(".language")
act.onclick = function() {
	language.classList.toggle("hide")
}
var one = document.querySelector("#one")
var two = document.querySelector("#two")
var three = document.querySelector("#three")
one.onclick = function() {
	act.innerHTML = this.innerHTML
	language.classList.add("hide")
}

two.onclick = function() {
	act.innerHTML = this.innerHTML
	language.classList.add("hide")
}

three.onclick = function() {
	act.innerHTML = this.innerHTML
	language.classList.add("hide")
}
var xx = document.querySelector("#xx1")
var xx2 = document.querySelector("#xx2")
var uyis = document.querySelector(".one-2")
var form = document.querySelector(".form-bg1")
var form2 = document.querySelector(".form-bg2")
var btn1 = document.querySelector(".btn1")
var btn2 = document.querySelector(".btn2")
var inp1 = document.querySelector(".inp1")
var inp3 = document.querySelector("#inp3")
var namess = document.querySelector("#name")

uyis.onclick = function() {
	form.classList.remove("hide")
	inp1.value = namess.innerHTML
}
btn1.onclick = function() {
	form.classList.add("hide")
}
btn2.onclick = function() {
	form.classList.add("hide")
	namess.innerHTML = inp1.value
}
xx.onclick = function() {
	form.classList.add("hide")
}
var btn3 = document.querySelector(".btn3")
var btn4 = document.querySelector(".btn4")
var ages = document.querySelector("#ages")
var names = document.querySelector("#names")
var age = document.querySelector("#age")
var kkk = document.querySelector(".one-3")
var lll = document.querySelector("#lll")
var yuy = document.querySelector("#yuy")
kkk.onclick = function() {
	form2.classList.remove("hide")
	inp3.value = names.innerHTML
	ages.value = age.innerHTML
}
lll.onclick = function() {
	form2.classList.remove("hide")
	inp3.value = names.innerHTML
	ages.value = age.innerHTML
}
xx2.onclick = function() {
	form2.classList.add("hide")
}
btn3.onclick = function() {
	form2.classList.add("hide")
}
btn4.onclick = function() {
	form2.classList.add("hide")
	names.innerHTML = inp3.value
	age.innerHTML = ages.value
}
